import request from '@/utils/request'

export abstract class LogininfoRequest {
  /** 查询操作日志列表 */
  static findList(params: TableQueryParams<LogininfoType.Entity>): TableResult<LogininfoType.Entity> {
    return request.get(`/monitor/log/logininfo/list`, { params })
  }

  /** 清空登录日志 */
  static clear(): Promise<string> {
    return request.delete(`/monitor/log/logininfor/clear`)
  }

  /** 删除登录日志 */
  static delete(params: { ids: string }): Promise<string> {
    return request.delete('/monitor/log/logininfor/delete', { params })
  }

  /** 导出登录日志 */
  static exportExcel() {
    return request.get('/monitor/log/logininfor/exportExcel', { responseType: 'arraybuffer' })
  }
}
